package com.ts.comm;

import java.io.Serializable;

/**
 * Created by 马俊鹏 on 2017/6/1.
 */
public class SysColumn implements Serializable {

	/*列字段名*/
	private String field;

	/*列标题*/
	private String title;

	/*数据对齐方式*/
	private String align;


	/*表头对齐方式*/
	private String halign="center";

	/*宽度*/
	private int width;

	/*跨行数*/
	private int rowspan;

	/*跨列数*/
	private int colspan;

	/*是否可见*/
	private boolean visible;
	/*是否允许列排序，默认true*/
	private boolean sortable=true;

	/*列格式化*/
	private String format;

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}


	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAlign() {
		return align;
	}

	public void setAlign(String align) {
		this.align = align;
	}

	public String getHalign() {
		return halign;
	}

	public void setHalign(String halign) {
		this.halign = halign;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getRowspan() {
		return rowspan;
	}

	public void setRowspan(int rowspan) {
		this.rowspan = rowspan;
	}

	public int getColspan() {
		return colspan;
	}

	public void setColspan(int colspan) {
		this.colspan = colspan;
	}

	public boolean isVisible() {
		return visible;
	}

	public void setVisible(boolean visible) {
		this.visible = visible;
	}

	public boolean isSortable() {
		return sortable;
	}

	public void setSortable(boolean sortable) {
		this.sortable = sortable;
	}

	public SysColumn(){

	}

	public SysColumn(String field, String title, String align, int width, int rowspan, int colspan, boolean visible) {
		this.field = field;
		this.title = title;
		this.align = align;
		this.width = width;
		this.rowspan = rowspan;
		this.colspan = colspan;
		this.visible = visible;
	}
}

